package org.cocopapaya.feature.ws;

import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.RequestPayload;
import org.w3c.dom.Element;

@Endpoint
public class CarsEndpoint {

	  private static final String NAMESPACE_URI = "http://www.example.org/CarService/";

	@PayloadRoot(namespace = NAMESPACE_URI, localPart = "GetCars")                 
	  public void handleGetCarsRequest(@RequestPayload Element input)     
	      throws Exception {
		
		System.out.println("### GOT REQUEST: "+input.getNodeName());
		
	  }
}
